import { Result, Button } from "antd";
import { useHistory } from "react-router-dom";
const NotFound = () => {
    const history = useHistory();
    return (
        <Result
            status="404"
            title="404"
            subTitle="对不起,您访问的页面去火星了"
            extra={
                <Button onClick={() => history.push("/home")} type="primary">
                    回主页
                </Button>
            }
        />
    );
};

export default NotFound